#include <iostream>
using namespace std;

class Test{
private:
    int a;
    int b;
public:
    int getA(){ return a; }
    int getB(){ return b; }
};
Test gt;
int main(int argc, char const *argv[]){
    Test t;
    Test *pt = new Test;


    int a = t.getA();
    int b = t.getB();
    cout << a << " " << b << endl;
    cout << gt.getA() << " " << gt.getB() << endl;
    cout << pt->getA() << " " << pt->getB() << endl;

    return 0;
}